#include <stdio.h>
#include <strings.h>
int main(void)
{
    char fname[20];
    char lname[20];

    printf("input the first name and the last name: ");
    scanf("%s %s", fname, lname);
    printf("%s %s\n", fname, lname);
    printf("%*d% *d\n", strlen(fname), strlen(fname), strlen(lname)+1, strlen(lname));
    printf("%s %s\n", fname, lname);
    printf("%*d% *d\n", -strlen(fname), strlen(fname), -strlen(lname), strlen(lname));

    return 0;
}